import request from "@/plugins/axios";

export function login(data: LoginRequest) {
    return request.post<User>('/api/login', data, {loading: true, loadingText: '正在登录，请稍后...'});
}